﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.WmsManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.WmsManagement.MaterialDocVMs
{
    public partial class MaterialDocTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._MaterialDoc._Code")]
        public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.Code);
        [Display(Name = "_Model._MaterialDoc._Name")]
        public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.Name);
        [Display(Name = "_Model._MaterialDoc._ErpCode")]
        public ExcelPropety ErpCode_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.ErpCode);
        [Display(Name = "_Model._MaterialDoc._MaterialProperty")]
        public ExcelPropety MaterialProperty_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.MaterialProperty);
        [Display(Name = "_Model._MaterialDoc._Spec")]
        public ExcelPropety Spec_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.Spec);
        [Display(Name = "_Model._MaterialDoc._Unit")]
        public ExcelPropety Unit_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.Unit);
        [Display(Name = "_Model._MaterialDoc._MaterialType")]
        public ExcelPropety MaterialType_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.MaterialType);
        [Display(Name = "_Model._MaterialDoc._Rules")]
        public ExcelPropety Rules_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.Rules);
        [Display(Name = "_Model._MaterialDoc._Expiration")]
        public ExcelPropety Expiration_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.Expiration);
        [Display(Name = "_Model._MaterialDoc._Supplier")]
        public ExcelPropety Supplier_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.Supplier);
        [Display(Name = "_Model._MaterialDoc._Pos")]
        public ExcelPropety Pos_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.Pos);
        [Display(Name = "_Model._MaterialDoc._Active")]
        public ExcelPropety Active_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.Active);
        [Display(Name = "_Model._MaterialDoc._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.CreateTime, true);
        [Display(Name = "_Model._MaterialDoc._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.UpdateTime, true);
        [Display(Name = "_Model._MaterialDoc._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.CreateBy);
        [Display(Name = "_Model._MaterialDoc._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.UpdateBy);
        [Display(Name = "_Model._MaterialDoc._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.IsValid);
        [Display(Name = "_Model._MaterialDoc._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<MaterialDoc>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class MaterialDocImportVM : BaseImportVM<MaterialDocTemplateVM, MaterialDoc>
    {
            //import

    }

}